package file1;

import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;

public class Test7 {
    public static void main(String[] args) {
        try (OutputStream outputStream = new FileOutputStream("test/test.txt")) {
            String s = "百骑劫魏营，功震天下英！";
            byte[] b = s.getBytes("utf-8");
            outputStream.write(b);
            outputStream.flush();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
